<?php

/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */

/**
 * Description of Tinh_thanhpho_model
 *
 * @author Bui
 */
class Tinh_thanhpho_model extends CI_Model {

    //put your code here
    public function __construct() {
        parent::__construct();
        $this->load->database('gs7s_tinh_thanhpho');
    }
    
    function get_data(){
        $data= $this->db->get('gs7s_tinh_thanhpho');
        return $data->row_array();
    }
    
    function num_row(){
        $data= $this->db->get('gs7s_tinh_thanhpho');
        return $data->num_rows();
    }
 
}

?>
